import config from "@/config"
import http from "@/utils/request"

export default{
    deparList:{
        url: `${config.API_URL}/department`,
		name: "获取部门列表",
		get: async function(){
			return await http.get(this.url)
		}
    },

    deparAdd:{
        url: `${config.API_URL}/department`,
		name: "添加用户",
		post: async function(data={}){
			return await http.post(this.url, data)
		}
    },

    deparDelete:{
        url: `${config.API_URL}/department`,
		name: "删除用户",
		delete: async function(data={}){
			return await http.delete(this.url, data)
		}
    },

    deparUpdate:{
        url: `${config.API_URL}/department`,
		name: "修改用户",
		put: async function(data={}){
			return await http.put(this.url, data)
		}
    }
}






